<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Admin.Master"Inherits="System.Web.Mvc.ViewPage<TemplateWeb.Models.ViewModels.GroupViewModel>" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	SelectThongTinWebsite
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent1" runat="server">
	<span class="AdminTitle" style="color:#cc0000;">ThongTinWebsite Management</span>
	(<a href="<%= Url.Action("Index", "Home") %>" class="AdminPageText">
	<%= WebConfiguration.SiteName  %>
	</a>|
	<a href="<%= Url.Action("LogOff", "Account") %>" class="AdminPageText">
		LogOut
	</a>)
	<br />
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="MainContent2" runat="server">
	<script src="../../Scripts/fckeditor/fckeditor.js" type="text/javascript"></script>
	<script type="text/javascript">
		window.onload = function () {
			var objFckEditor = new FCKeditor('ThongTinWebsite_GioiThieu');
			objFckEditor.BasePath = '<%= ResolveUrl("~/Scripts/fckeditor/")%>';
			objFckEditor.Height = 400;
			objFckEditor.Width = 600;
			objFckEditor.ToolbarSet = 'TemplateWeb.MyToolbar';
			objFckEditor.ReplaceTextarea();

			objFckEditor = new FCKeditor('ThongTinWebsite_LoiIchKhachHang');
			objFckEditor.BasePath = '<%= ResolveUrl("~/Scripts/fckeditor/")%>';
			objFckEditor.Height = 400;
			objFckEditor.Width = 600;
			objFckEditor.ToolbarSet = 'TemplateWeb.MyToolbar';
			objFckEditor.ReplaceTextarea();
		}
	</script>
	<script type="text/javascript">
		<% if (Model.ThongTinWebsiteModel.InfoText != null && Model.ThongTinWebsiteModel.InfoText != ""){ %>
			alert('<%= Model.ThongTinWebsiteModel.InfoText %>');
		<% } %>
	</script>
	<% using (Html.BeginForm("UpdateThongTinWebsite", "Admin", FormMethod.Post, new { enctype = "multipart/form-data", onsubmit = "return ValidateThongTinWebsite();" }))
	{ %>
		<input type="hidden" name="ThongTinWebsite_ID" value="<%= Model.ThongTinWebsiteModel.GetModel.LstObjModel[0].ID %>" />
		<div style="padding-top: 40px">
			<span style="font-size:18px; font-weight:bold;">DetailOf ThongTinWebsite</span>
			<table width="100%" border="0" cellspacing="0" cellpadding="0" class="AdminPageText">
				<tbody>
					<tr>
						<td>
							<div align="left" style="padding-top:15px">
								<font class="normal8">NamPhatTrien: </font>
							</div>
						</td>
						<td height="20">
							<div align="left" style="padding-top:15px">
								<%= Html.TextBox("ThongTinWebsite_NamPhatTrien", Model.ThongTinWebsiteModel.GetModel.LstObjModel[0].NamPhatTrien, new { @style = "width: 590px;" })%>
							</div>
						</td>
					</tr>
					<tr>
						<td>
							<div align="left" style="padding-top:15px">
								<font class="normal8">TenCongTy: </font>
							</div>
						</td>
						<td height="20">
							<div align="left" style="padding-top:15px">
								<%= Html.TextBox("ThongTinWebsite_TenCongTy", Model.ThongTinWebsiteModel.GetModel.LstObjModel[0].TenCongTy, new { @style = "width: 590px;" })%>
							</div>
						</td>
					</tr>
					<tr>
						<td>
							<div align="left" style="padding-top:15px">
								<font class="normal8">DiaChi: </font>
							</div>
						</td>
						<td height="20">
							<div align="left" style="padding-top:15px">
								<%= Html.TextBox("ThongTinWebsite_DiaChi", Model.ThongTinWebsiteModel.GetModel.LstObjModel[0].DiaChi, new { @style = "width: 590px;" })%>
							</div>
						</td>
					</tr>
					<tr>
						<td>
							<div align="left" style="padding-top:15px">
								<font class="normal8">DienThoai: </font>
							</div>
						</td>
						<td height="20">
							<div align="left" style="padding-top:15px">
								<%= Html.TextBox("ThongTinWebsite_DienThoai", Model.ThongTinWebsiteModel.GetModel.LstObjModel[0].DienThoai, new { @style = "width: 590px;" })%>
							</div>
						</td>
					</tr>
					<tr>
						<td>
							<div align="left" style="padding-top:15px">
								<font class="normal8">Hotline: </font>
							</div>
						</td>
						<td height="20">
							<div align="left" style="padding-top:15px">
								<%= Html.TextBox("ThongTinWebsite_Hotline", Model.ThongTinWebsiteModel.GetModel.LstObjModel[0].Hotline, new { @style = "width: 590px;" })%>
							</div>
						</td>
					</tr>
					<tr>
						<td>
							<div align="left" style="padding-top:15px">
								<font class="normal8">EmailCongTy: </font>
							</div>
						</td>
						<td height="20">
							<div align="left" style="padding-top:15px">
								<%= Html.TextBox("ThongTinWebsite_EmailCongTy", Model.ThongTinWebsiteModel.GetModel.LstObjModel[0].EmailCongTy, new { @style = "width: 590px;" })%>
							</div>
						</td>
					</tr>
					<tr>
						<td>
							<div align="left" style="padding-top:15px">
								<font class="normal8">MatKhauEmailCongTy: </font>
							</div>
						</td>
						<td height="20">
							<div align="left" style="padding-top:15px">
								<%= Html.Password("ThongTinWebsite_MatKhauEmailCongTy", Model.ThongTinWebsiteModel.GetModel.LstObjModel[0].MatKhauEmailCongTy, new { @style = "width: 590px;" })%>
							</div>
						</td>
					</tr>
					<tr>
						<td>
							<div align="left" style="padding-top:15px">
								<font class="normal8">GioiThieu: </font>
							</div>
						</td>
						<td height="20">
							<div align="left" style="padding-top:15px">
								<%= Html.TextArea("ThongTinWebsite_GioiThieu", Model.ThongTinWebsiteModel.GetModel.LstObjModel[0].GioiThieu)%>
							</div>
						</td>
					</tr>
                    <tr>
						<td>
							<div align="left" style="padding-top:15px">
								<font class="normal8">GioiThieuRutGon: </font>
							</div>
						</td>
						<td height="20">
							<div align="left" style="padding-top:15px">
								<%= Html.TextArea("ThongTinWebsite_GioiThieuRutGon", Model.ThongTinWebsiteModel.GetModel.LstObjModel[0].GioiThieuRutGon,  new { @style = "width: 590px; height: 100px;" })%>
							</div>
						</td>
					</tr>
                    <tr>
						<td>
							<div align="left" style="padding-top:15px">
								<font class="normal8">DiaChiDaNang: </font>
							</div>
						</td>
						<td height="20">
							<div align="left" style="padding-top:15px">
								<%= Html.TextBox("ThongTinWebsite_DiaChiDaNang", Model.ThongTinWebsiteModel.GetModel.LstObjModel[0].DiaChiDaNang, new { @style = "width: 590px;" })%>
							</div>
						</td>
					</tr>
					<tr>
						<td>
							<div align="left" style="padding-top:15px">
								<font class="normal8">DienThoaiDaNang: </font>
							</div>
						</td>
						<td height="20">
							<div align="left" style="padding-top:15px">
								<%= Html.TextBox("ThongTinWebsite_DienThoaiDaNang", Model.ThongTinWebsiteModel.GetModel.LstObjModel[0].DienThoaiDaNang, new { @style = "width: 590px;" })%>
							</div>
						</td>
					</tr>
					<tr>
						<td>
							<div align="left" style="padding-top:15px">
								<font class="normal8">EmailDaNang: </font>
							</div>
						</td>
						<td height="20">
							<div align="left" style="padding-top:15px">
								<%= Html.TextBox("ThongTinWebsite_EmailDaNang", Model.ThongTinWebsiteModel.GetModel.LstObjModel[0].EmailDaNang, new { @style = "width: 590px;" })%>
							</div>
						</td>
					</tr>
                    <tr>
						<td>
							<div align="left" style="padding-top:15px">
								<font class="normal8">LoiIchKhachHang: </font>
							</div>
						</td>
						<td height="20">
							<div align="left" style="padding-top:15px">
								<%= Html.TextArea("ThongTinWebsite_LoiIchKhachHang", Model.ThongTinWebsiteModel.GetModel.LstObjModel[0].LoiIchKhachHang)%>
							</div>
						</td>
					</tr>
                                        <tr>
						<td>
							<div align="left" style="padding-top:15px">
								<font class="normal8">LoiIchKhachHangRutGon: </font>
							</div>
						</td>
						<td height="20">
							<div align="left" style="padding-top:15px">
								<%= Html.TextArea("ThongTinWebsite_LoiIchKhachHangRutGon", Model.ThongTinWebsiteModel.GetModel.LstObjModel[0].LoiIchKhachHangRutGon, new { @style = "width: 590px; height: 100px;" })%>
							</div>
						</td>
					</tr>
                    <tr>
						<td>
							<div align="left" style="padding-top:15px">
								<font class="normal8">Banner: </font>
							</div>
						</td>
						<td height="20">
							<div align="left" style="padding-top:15px">
								<input type="file" name="ThongTinWebsite_Banner" />
								<br />
								<br />
                                <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="979" height="125" id="BannerD" align="">
                                    <param name=movie value="../../Content/Images/Home/<%= Model.ThongTinWebsiteModel.GetModel.LstObjModel[0].Banner %>"><param name=quality value=high>
                                    <embed src="../../Content/Images/Home/<%= Model.ThongTinWebsiteModel.GetModel.LstObjModel[0].Banner %>" quality=high  width="979" height="125" name="BannerD" align="" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer">
                                    </embed>
                                </object>
							</div>
						</td>
					</tr>
					<tr>
						<td height="20" style="width: 130px">
						</td>
						<td height="20">
							<div align="left">
								<br/>
								<input type="submit" value="Update" />
								<p>
								</p>
							</div>
						</td>
					</tr>
				</tbody>
			</table>
		</div>
	<% } %>
</asp:Content>
